import request from "@/libs/request";

export function findChapterByUserIdProportion(data) {
  return request({
    url: "/mindmap/api/read/findChapterByUserIdProportion",
    method: "post",
    data,
  });
}

export function findChapterList(data) {
  return request({
    url: "/mindmap/api/read/findChapterList",
    method: "post",
    data,
  });
}

export function findChapterByUserId(data) {
  return request({
    url: "/mindmap/api/read/findChapterByUserId",
    method: "post",
    data,
  });
}

export function testWord(data) {
  return request({
    url: "/mindmap/api/read/testWord",
    method: "post",
    data,
  });
}

export function findByLearnByWord(data) {
  return request({
    url: "/mindmap/api/read/findByLearnByWord",
    method: "post",
    data,
  });
}

export function mindmapReadSave(data) {
  return request({
    url: "/mindmap/api/read/save",
    method: "post",
    data,
  });
}

export function wordPassByChapterId(data) {
  return request({
    url: "/mindmap/api/pass/wordPassByChapterId",
    method: "post",
    data,
  });
}

export function mindmapPassSave(data) {
  return request({
    url: "/mindmap/api/pass/save",
    method: "post",
    data,
  });
}

export function mindmapPassTestCommit(data) {
  return request({
    url: "/mindmap/api/pass/testCommit",
    method: "post",
    data,
  });
}
